[NTG-context] Re: preventing column break after section title

2024-04-18 Thread Peter Münster
On Thu, Apr 18 2024, Peter Münster wrote: > How could I prevent a column break after the second section title please? Ok, found it: \setupitemize[each][autointro] -- Peter ___ If your quest

[NTG-context] preventing column break after section title

2024-04-18 Thread Peter Münster
Hi, How could I prevent a column break after the second section title please? Minimal example: \starttext \startcolumns[n=2] \section{title 1} \dorecurse{22}{bla\par} \section{title 2} % Here starts a new column. \startitemize \dorecurse{15}{\item bla} \stopitemize \stopcolumns

[NTG-context] Re: how to apply metapost effects to section title?

2024-04-09 Thread Wolfgang Schuster
for i within tt : pathpart i && endfor cycle withshademethod "linear" withshadedirection up withshadecolors (red, blue) ; \stopMPcode } \definehead[Myhead][section] \setuphead[Myhead][ style=\Mystyle, ] \startMyhead[title=sample] a sample text

[NTG-context] how to apply metapost effects to section title?

2024-04-09 Thread seyal . zavira
withshademethod "linear" withshadedirection up withshadecolors (red, blue) ; \stopMPcode } \definehead[Myhead][section] \setuphead[Myhead][ style=\Mystyle, ] \startMyhead[title=sample] a sample text \stopMyhead \stoptext and the code below works but does not colo

[NTG-context] Re: Suppress the Chapter Number in the Section Numbering

2024-03-19 Thread Wolfgang Schuster
Jeroen schrieb am 19.03.2024 um 20:35: I am trying to suppress the chapter number in a section number as below as in 1., 2., etc instead of 1.1, 1.2, etc. Is there a simple way to achieve this? 1. The First Chapter 1. The First Section ... 2. The Second Section ... 2. The Second Chapter 1

[NTG-context] Suppress the Chapter Number in the Section Numbering

2024-03-19 Thread Jeroen
I am trying to suppress the chapter number in a section number as below as in 1., 2., etc instead of 1.1, 1.2, etc. Is there a simple way to achieve this? 1. The First Chapter 1. The First Section ... 2. The Second Section ... 2. The Second Chapter 1. The Third Section ... 2. The Fourth Section

[NTG-context] Re: How to set section title based on section content?

2024-03-09 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 09.03.2024 um 16:01: How to set section title based on section content? I have a document that has some structures like this: \starttext \startsection[title={Animals}] \event{\input knuth } \stopsection \startsection[title={Books}] \event{\input knuth

[NTG-context] How to set section title based on section content?

2024-03-09 Thread Joel via ntg-context
How to set section title based on section content? I have a document that has some structures like this: \starttext \startsection[title={Animals}] \event{\input knuth } \stopsection \startsection[title={Books}] \event{\input knuth } \stopsection \stoptext The event macro runs a bunch

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Oliver Marugg
> Am 13.02.2024 um 16:54 schrieb Wolfgang Schuster > : > > Oliver Marugg schrieb am 13.02.2024 um 00:17: >> Hi >> Section numbering does not work until I remove \startbackmatter >> \stopbackmatter. I had a longer text file and I stripped it down until I &

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Wolfgang Schuster
Oliver Marugg schrieb am 13.02.2024 um 00:17: Hi Section numbering does not work until I remove \startbackmatter \stopbackmatter. I had a longer text file and I stripped it down until I found this? Greets Oliver Running freshly installed context ARM64 on m1 and updated it via sh install.sh

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Oliver Marugg
Many thanks Taco, that works indeed;-) > Am 13.02.2024 um 09:29 schrieb Taco Hoekwater : > > > >> On 13 Feb 2024, at 00:17, Oliver Marugg wrote: >> >> Hi >> >> Section numbering does not work until I remove \startbackmatter >> \stopbac

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Taco Hoekwater
> On 13 Feb 2024, at 00:17, Oliver Marugg wrote: > > Hi > > Section numbering does not work until I remove \startbackmatter > \stopbackmatter. I had a longer text file and I stripped it down until I > found this? IIRC : \setupsectionblock[backpart][number=ye

[NTG-context] Section numbering does not work

2024-02-12 Thread Oliver Marugg
Hi Section numbering does not work until I remove \startbackmatter \stopbackmatter. I had a longer text file and I stripped it down until I found this? Greets Oliver Running freshly installed context ARM64 on m1 and updated it via sh install.sh on ARM64 macos 14.3.1: context --version

[NTG-context] Re: How to print the book title and section title where \reference is located?

2024-02-09 Thread Bruce Horrocks
uirement A is met in TB, "Cats", p. 11" basically letting the reader know > its in the textbook, section called "Cats", on p. 11. To mark the pages, I'm > simply dropping in macros called "\requirementA" "\requirementB" on whichever > page of whiche

[NTG-context] How to print the book title and section title where \reference is located?

2024-02-06 Thread Joel via ntg-context
chersguide.tex I have to prove to a government agency that the content meets several requirements, so I'm giving them a simple file that says something like "Requirement A is met in TB, "Cats", p. 11" basically letting the reader know its in the textbook, section called "Cats",

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-28 Thread Wolfgang Schuster
|<>| ##. SECTION TITLE paragraph ... . |<-->| margin ``` I wanted paragraph to begin on the same line the section title lies. \define[1]\SectionNumberCommand   {\margindata[inmargin]

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Pablo Rodriguez via ntg-context
On 1/27/24 17:40, Ali Ali wrote: > Thanks, those seems close to what I wanted but not exactly. > > The ASCII graphic (better in typewriter font) may explain what I desired, > ``` > text width > |<---->| > > ##.

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Ali Ali
Thanks, those seems close to what I wanted but not exactly. The ASCII graphic (better in typewriter font) may explain what I desired, ``` text width |<>| ##. SECTION TITLE par

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Wolfgang Schuster
Ali Ali schrieb am 27.01.2024 um 06:03: I've able to achieve the results I wanted by trial/e using the code shown below. """ \def\subsecnumwrapper#1{\llap{#1\hskip8pt}} \setuphead[subsection][alternative=text,numbercommand=\subsecnumwrapper,distance=0pt] """ I just wanted to know if there

[NTG-context] Section number in the margin and the section title followed by paragraph!

2024-01-26 Thread Ali Ali
I've able to achieve the results I wanted by trial/e using the code shown below. """ \def\subsecnumwrapper#1{\llap{#1\hskip8pt}} \setuphead[subsection][alternative=text,numbercommand=\subsecnumwrapper,distance=0pt] """ I just wanted to know if there already an option defined to achieve the

[NTG-context] Adjust width of section part of table of contents

2023-09-04 Thread Jeroen
The following is a setuplist for the table of contents. Is there a way to have the section part only go to 80% of the page width, similar to width=0.8\textwidth \setuplist [chapter] [style={\bf}] \setuplist [section] [style={\tfx}] \setuplist [chapter,section] [headnumber

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Lukas via ntg-context
Hello, On 2023-09-04 12:06, Wolfgang Schuster wrote: \mainlanguage[cz] \setuphead   [section]   [distance=1.25em,    style=\bfc,    align={flushleft,broad,nothyphenated}] that's it, thank you! Lukas \setupbodyfont[8pt] \starttext \chapter{Dummy} \samplefile{lorem} \section{Specifické

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Wolfgang Schuster
Lukas via ntg-context schrieb am 04.09.2023 um 13:33: Hello, just " \setuphead[section][distance=1.25em] \setuphead[section][style=\bfc] " Lukas On 2023-09-04 11:25, Henning Hraban Ramm wrote: Am 04.09.23 um 13:06 schrieb Lukas via ntg-context: IOW to force the word "stavb

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Lukas via ntg-context
Hello, just " \setuphead[section][distance=1.25em] \setuphead[section][style=\bfc] " Lukas On 2023-09-04 11:25, Henning Hraban Ramm wrote: Am 04.09.23 um 13:06 schrieb Lukas via ntg-context: IOW to force the word "stavby" not to cross the right border (see the

[NTG-context] Re: Trimming (rearranging) long section name

2023-09-04 Thread Henning Hraban Ramm
Am 04.09.23 um 13:06 schrieb Lukas via ntg-context: IOW to force the word "stavby" not to cross the right border (see the green vertical line) but to appear on the next line? I played with "strict", "verytolerant" and similar options but they seem not to affect

[NTG-context] Trimming (rearranging) long section name

2023-09-04 Thread Lukas via ntg-context
Hello, is there a way to alter the section name to be " Specifické požadavky pro předpokládanou technologii stavby (přístupy, přívody el. energie, skladovací plochy, montážní a pomocné plochy, montážní a pomocné konstrukce, ...) " instead of " Specifické požadavky pro

[NTG-context] Re: Reinserting a section title followed by (continued) after a page break

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 5:55 AM, Calvin Ross wrote: On the off chance anyone seeing this is interested, I have a solution uploaded as part of a module I wrote for screenplay and stageplay writing: https://github.com/cjayross/drama.mkiv/blob/4a9b2576c8630fd03352d95f99456092f6e21190/drama.mkiv#L480 A few

[NTG-context] Re: Reinserting a section title followed by (continued) after a page break

2023-09-03 Thread Calvin Ross
On the off chance anyone seeing this is interested, I have a solution uploaded as part of a module I wrote for screenplay and stageplay writing: https://github.com/cjayross/drama.mkiv/blob/4a9b2576c8630fd03352d95f99456092f6e21190/drama.mkiv#L480 The solution ended up being very detailed and

[NTG-context] Re: An strange error with section and page

2023-08-27 Thread Xavier B.
Thanks. It works. On Sun, 27 Aug 2023 21:24:54 +0200 Wolfgang Schuster ha escrit: > Am So., 27. Aug. 2023 um 19:54 Uhr schrieb Xavier B. >: > > > What is the state of this problem? > > Is it some deadline here? > > > > I need to have a "production" document in mid september to show to my > >

[NTG-context] Re: An strange error with section and page

2023-08-27 Thread Wolfgang Schuster
Am So., 27. Aug. 2023 um 19:54 Uhr schrieb Xavier B. : > What is the state of this problem? > Is it some deadline here? > > I need to have a "production" document in mid september to show to my > students. > Can you please make a "push" in this topic. > Just update your installation, the

[NTG-context] Re: An strange error with section and page

2023-08-27 Thread Xavier B.
What is the state of this problem? Is it some deadline here? I need to have a "production" document in mid september to show to my students. Can you please make a "push" in this topic. Thanks in advance, Xavier On Wed, 23 Aug 2023 22:04:36 +0200 Wolfgang Schuster ha escrit: > Xavier B.

[NTG-context] Re: An strange error with section and page

2023-08-24 Thread Xavier B.
Oh Awesome. I'm looking forward to the solution. Thanks a lot, Xavier On Wed, 23 Aug 2023 22:04:36 +0200 Wolfgang Schuster ha escrit: > Xavier B. schrieb am 23.08.2023 um 15:02: > > Wolfgang, > > > > I detect something extrange: when I use \startexercici \stopexercici (see > >

[NTG-context] Re: An strange error with section and page

2023-08-23 Thread Wolfgang Schuster
Xavier B. schrieb am 23.08.2023 um 15:02: Wolfgang, I detect something extrange: when I use \startexercici \stopexercici (see [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt]) in some cases there is an *undesired* indent (see attachment image). I saw the

[NTG-context] Re: An strange error with section and page

2023-08-23 Thread Xavier B.
On Tue, 22 Aug 2023 20:06:52 +0200 Wolfgang Schuster ha escrit: > While the solution here is to convert all subject headings to subsubject > (be sure to also take care > of even lower section) a quick way to fix the page break is to disable > the page-value for subject, > look a

[NTG-context] Re: An strange error with section and page

2023-08-22 Thread Wolfgang Schuster
] before each section to \setupheads[section][style={\bf \ssc}, alternative=margin, page=yes] but now after each section there is a new page. Why? I don't know. Can someone help me to see what happens? The source code is here [https://repo.or.cz/apunts-espa-matematiques.git] You're using

[NTG-context] An strange error with section and page

2023-08-22 Thread Xavier B.
Hi, I have a long document [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf] which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. I migrated old syntax to new one and replace \page[yes] before each section to \setupheads[section

[NTG-context] Reinserting a section title followed by (continued) after a page break

2023-07-30 Thread Calvin Ross
? At the moment, I've been looking into adding a hook to shipout to prepend a section header with the last custom mark I've set. Even still, I don't know if this would work, or how to go about achieving this. If columns would be too difficult to implement, I'd be fine with living without (continued

Re: [NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
Am 27.06.23 um 21:01 schrieb Wolfgang Schuster via ntg-context: Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Someth

Re: [NTG-context] expansion of section title

2023-06-27 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end of the book \chapter

[NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
I think I had a good idea how to keep an overview of the “todos” in my book project: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end o

Re: [NTG-context] How to print the section number of a reference in ConTeXt?

2023-03-04 Thread Joel via ntg-context
To explain more simply, I've put \pagereference[sample] somewhere in a document. Intead of just printing the page number that appeared with \at{page}[sample], I'd like to print the section or subsection title of where that appeared. --Joel On Saturday, March 4, 2023 at 09:18:19 AM MST

[NTG-context] How to print the section number of a reference in ConTeXt?

2023-03-04 Thread Joel via ntg-context
I've set a \pagereference in a chapter, and want to print its chapter title and page number, ex. "You can find more information in "Fish" on p. 1" (where "Fish" is the title of the chapter or section). I've tried looking all through the wiki, thinking this was a ba

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Hans Hagen via ntg-context
On 2/16/2023 8:07 PM, Alex Leray via ntg-context wrote: Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI] \setuphead[section][conversion=romannumeralszero

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI] \setuphead[section][conversion=romannumeralszero] \starttext \startsection[title={Section zero}]foo

[NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext

Re: [NTG-context] Use section custom value in a header text.

2022-12-21 Thread Pawel Urbanski via ntg-context
> > > Hi Everyone, Thanks for the answers. I learnt something new. I ended up using the: \namedstructureuservariable{chapter}{my_custom_variable} command with \setupheadertexts. It worked well - at least for my case. While reading the wiki I started wondering what is the role of: lefttext /

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Rik Kabel via ntg-context
of the attached key is not expanded.. Evey page will contain just one section started by a \startchapter and \stop chapter. I would like to put this custom attached value in the right slot in the document header. I hope that htis time around htigs are more clear. On Tue, Dec 20, 2022 at 8:13 PM Henning

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Henning Hraban Ramm via ntg-context
of the attached key is not expanded.. Evey page will contain just one section started by a \startchapter and \stop chapter. I would like to put this custom attached value in the right slot in the document header. In headers and footers, you need \namedstructureuservariable{chapter}{custom_value

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Pawel Urbanski via ntg-context
section started by a \startchapter and \stop chapter. I would like to put this custom attached value in the right slot in the document header. I hope that htis time around htigs are more clear. On Tue, Dec 20, 2022 at 8:13 PM Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote:

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Henning Hraban Ramm via ntg-context
Am 20.12.22 um 19:44 schrieb Pawel Urbanski via ntg-context: Dear Friends, I spent some time searching and coding simple documents, but failed and therefore I'm asking for help... A section such as chapter cn have custom keys with values. One uses the: \structureuservariable command to access

[NTG-context] Use section custom value in a header text.

2022-12-20 Thread Pawel Urbanski via ntg-context
Dear Friends, I spent some time searching and coding simple documents, but failed and therefore I'm asking for help... A section such as chapter cn have custom keys with values. One uses the: \structureuservariable command to access such values. How can I use such a value to create a custom header

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 6:33 PM, Pablo Rodriguez via ntg-context wrote: On 12/6/22 09:05, Hans Hagen via ntg-context wrote: On 12/6/2022 1:39 AM, Joel wrote: Thanks so much! It took some work for me to figure out how to make it work, but it now works great! i added \firstsectionpage and \lastsectionpage

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-06 Thread Pablo Rodriguez via ntg-context
On 12/6/22 09:05, Hans Hagen via ntg-context wrote: > On 12/6/2022 1:39 AM, Joel wrote: >> Thanks so much! It took some work for me to figure out how to make it >> work, but it now works great! > i added \firstsectionpage and \lastsectionpage that (i guess) Pablo will > document at the wiki

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 1:39 AM, Joel wrote: Thanks so much! It took some work for me to figure out how to make it work, but it now works great! i added \firstsectionpage and \lastsectionpage that (i guess) Pablo will document at the wiki Hans

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Joel via ntg-context
rom a PDF: > > \externalfigure[filename.pdf][page=5] > > I am making a teacher's guide for a workbook (workbook.pdf). I need to > be able to display on the page all pages of a particular section. > > The teacher's guide uses the same section titles as the workbook, e.g.:

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
... we're talking about a rather special application, so what I can add is a simple helper that returns the first and last page of a section That would be great for me. keep in mind that it is also a biut fragile as one never know where the last one ends I wondered whether \doifreference

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Pablo Rodriguez via ntg-context
bout a rather special > application, so what I can add is a simple helper that returns the first > and last page of a section That would be great for me. > keep in mind that it is also a biut fragile as one never know where the > last one ends I wondered whether \doifreference{\la

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
On 12/5/2022 5:39 PM, Pablo Rodriguez via ntg-context wrote: On 12/5/22 13:13, Hans Hagen via ntg-context wrote: On 12/4/2022 11:30 PM, Joel via ntg-context wrote: I can use this code to display page 5 from a PDF: [...] \externalfigure[filename.pdf][section=17A] prototype attached (first

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Pablo Rodriguez via ntg-context
On 12/5/22 13:13, Hans Hagen via ntg-context wrote: > On 12/4/2022 11:30 PM, Joel via ntg-context wrote: >> I can use this code to display page 5 from a PDF: >> [...] >> \externalfigure[filename.pdf][section=17A] > > prototype attached (first process crap, then load)

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
On 12/4/2022 11:30 PM, Joel via ntg-context wrote: I can use this code to display page 5 from a PDF: \externalfigure[filename.pdf][page=5] I am making a teacher's guide for a workbook (workbook.pdf). I need to be able to display on the page all pages of a particular section. The teacher's

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Henning Hraban Ramm via ntg-context
Am 04.12.22 um 23:30 schrieb Joel via ntg-context: I can use this code to display page 5 from a PDF: \externalfigure[filename.pdf][page=5] I am making a teacher's guide for a workbook (workbook.pdf). I need to be able to display on the page all pages of a particular section. The teacher's

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Denis Maier via ntg-context
Don’t know about ConTeXt. But maybe you might want to have a look at pdftk. You could try to produce per-section pdfs and include those. Best, Denis Von: ntg-context Im Auftrag von Joel via ntg-context Gesendet: Sonntag, 4. Dezember 2022 23:31 An: Mailing List for ConTeXt Users Cc: Joel

[NTG-context] How to display the pages of a particular section in another PDF?

2022-12-04 Thread Joel via ntg-context
I can use this code to display page 5 from a PDF:\externalfigure[filename.pdf][page=5]I am making a teacher's guide for a workbook (workbook.pdf). I need to be able to display on the page all pages of a particular section. The teacher's guide uses the same section titles as the workbook, e.g

Re: [NTG-context] How to make a reference go to an exact point of a section on a page?

2022-09-02 Thread amano.kenji via ntg-context
\setupinteraction[state=start,focus=standard] was what I wanted. Thanks. --- Original Message --- On Thursday, September 1st, 2022 at 4:42 PM, Pablo Rodriguez via ntg-context wrote: > On 9/1/22 14:36, amano.kenji via ntg-context wrote: > > > I just created a reference t

Re: [NTG-context] How to make a reference go to an exact point of a section on a page?

2022-09-01 Thread Pablo Rodriguez via ntg-context
On 9/1/22 14:36, amano.kenji via ntg-context wrote: > I just created a reference to a \section with \in. > > Clicking the \in reference doesn't go to the \section, but to the > page that has the \section. > > Does ConTeXt lack the ability to go to an exact point of a numbered &

Re: [NTG-context] How to make a reference go to an exact point of a section on a page?

2022-09-01 Thread Mikael Sundqvist via ntg-context
On Thu, Sep 1, 2022 at 2:37 PM amano.kenji via ntg-context wrote: > > I just created a reference to a \section with \in. > > Clicking the \in reference doesn't go to the \section, but to the page that > has the \section. > > Does ConTeXt lack the ability to go to an exac

[NTG-context] How to make a reference go to an exact point of a section on a page?

2022-09-01 Thread amano.kenji via ntg-context
I just created a reference to a \section with \in. Clicking the \in reference doesn't go to the \section, but to the page that has the \section. Does ConTeXt lack the ability to go to an exact point of a numbered element on a page

[NTG-context] How to define a section title, after the section title appears?

2022-06-12 Thread Joel via ntg-context
I have a document with conditionally-generated content. There are some situations when I need the section title to change according to the content displayed within that section. For instance, the 14th section that appears in *every* chapter is either called "Cause and Effect" if the

[NTG-context] How can I get a section title to change depending on the section content?

2022-01-29 Thread Joel via ntg-context
I have a section somewhat like this...I'm replacing the code with something much simpler, but its basically doing a similar thing, running conditionals to check which content to place: \section{Brave Rabbits} \ifnum\somenumber>3 Print this content about rabbits. \e

Re: [NTG-context] Get Current Section Number

2022-01-09 Thread Wolfgang Schuster via ntg-context
Michael Urban via ntg-context schrieb am 09.01.2022 um 17:25: I want to put a book title above the Chapter title for the first chapter of a book. I suppose that this can be accomplished with a 'before=' clause that checks to see if it is the first chapter... but how do I look at the chapter

Re: [NTG-context] Get Current Section Number

2022-01-09 Thread Pablo Rodriguez via ntg-context
the chapter number in order to set up the > conditional? Hi MIchael, this might do the trick: \starttext \dorecurse{5} {\chapter{Chapter \structurenumber} \dorecurse{5} {\section{Section \structurenumber} \doifelse{\somenamedheadnumber{chapter}{current}}{1} {Th

[NTG-context] Get Current Section Number

2022-01-09 Thread Michael Urban via ntg-context
I want to put a book title above the Chapter title for the first chapter of a book. I suppose that this can be accomplished with a 'before=' clause that checks to see if it is the first chapter... but how do I look at the chapter number in order to set up the conditional? Mike

Re: [NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
ith the authors' > > affiliation for each section/chapter, by adapting things from the wiki > > (https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and > > https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that > > bugs me is that any note name I choos

Re: [NTG-context] \thanks inside author in section

2022-01-01 Thread Wolfgang Schuster via ntg-context
Youssef Cherem via ntg-context schrieb am 01.01.2022 um 13:10: I've tried to implement a journal-like footnote with the authors' affiliation for each section/chapter, by adapting things from the wiki (https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and https

[NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
I've tried to implement a journal-like footnote with the authors' affiliation for each section/chapter, by adapting things from the wiki ( https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that bugs me is that any

[NTG-context] \thanks inside author in section

2021-12-29 Thread Youssef Cherem via ntg-context
I've tried to implement a journal-like footnote with the authors' affiliation for each section/chapter, by adapting things from the wiki here <https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC> and here <https://wiki.contextgarden.net/LaTeX_Thanks>. However, one thing

Re: [NTG-context] Backmatter preventing section numbers from appearing

2021-11-25 Thread Hans Hagen via ntg-context
% comment out %\stopbackmatter % comment out \stoptext/ / / Uncommenting lines 8 and 9 causes the section numbers to disappear. Is this normal behavior? Why does the presence of backmatter affect my sections like this? technically there can be many so called sectionblocks in any order and as one

[NTG-context] Backmatter preventing section numbers from appearing

2021-11-25 Thread A A via ntg-context
* Uncommenting lines 8 and 9 causes the section numbers to disappear. Is this normal behavior? Why does the presence of backmatter affect my sections like this? Regards, Amine ___ If your question is of interest

[NTG-context] space before section titles sometimes disappears in grid mode

2021-08-12 Thread Henning Hraban Ramm via ntg-context
E.g. in CG journal, there are usually 3 blank lines before a section title. Most of it is single column and without grid, no problem there. But some articles use columnsets and are therefore in grid mode. Sometimes the space before the section title disappears completely, so that it is glued

[NTG-context] conditionally add \vfill before section if at end of page

2021-05-04 Thread denis.maier
, shrink=0.001, ] \showframe \starttext \section{Section} \input knuth\par \input knuth\par \input knuth\par \input ward \input ward \input ward %\vfill % can a \vfill be added automatically here? \section{Section} \input knuth\par % here we don't have a \vfill

Re: [NTG-context] bug in \headnumber[section] in LMTX?

2021-03-07 Thread Pablo Rodriguez
On 3/7/21 1:21 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 07.03.2021 um 10:49: >> Dear list, >> >> I have the following sample: >> >>\starttext >> \section{Section} >>\currentheadnumber\\ > > You ne

Re: [NTG-context] bug in \headnumber[section] in LMTX?

2021-03-07 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 07.03.2021 um 10:49: Dear list, I have the following sample: \starttext \section{Section} \currentheadnumber\\ You need \determineheadnumber[section] before you can use \currentheadnumber. \headnumbercontent\\ You can use

[NTG-context] bug in \headnumber[section] in LMTX?

2021-03-07 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \section{Section} \currentheadnumber\\ \headnumbercontent\\ \headnumber[section] \stoptext In LMTX, \headnumber[section] triggers an error message about missing number. BTW, \currentheadnumber outputs 0 in both MkIV

Re: [NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
On Thu, 19 Nov 2020 16:53:52 +0100 Pablo Rodriguez wrote: > On 11/19/20 11:55 AM, Marco Patzer wrote: > > Hi! > > [...] > > What's the reason the section head stays on the previous page when > > the “after” is used and how to fix this? > > Hi Marco, > >

Re: [NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Pablo Rodriguez
On 11/19/20 11:55 AM, Marco Patzer wrote: > Hi! > [...] > What's the reason the section head stays on the previous page when > the “after” is used and how to fix this? Hi Marco, by default (according to strc-def.mkiv), \section has "after=\blank". In some cases, I ha

[NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
Hi! In the following example the 2nd section head stays on page one when the “after” key is used. If the blackrule is commented out the section head moves to page two as intended. What's the reason the section head stays on the previous page when the “after” is used and how to fix

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Aditya Mahajan
On Tue, 10 Nov 2020, Sylvain Hubert wrote: > Indeed. Thanks for the information! > > For the record, this is how the problem is finally solved: > > \setuphead[section][after={\blank[sampage]}] > \begingroup\setupindenting[no]\dontleavehmode\startxtable … > \stopxt

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 19:23, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 10.11.2020 um 19:11: > > > Weirdly enough, "\hskip 0pt" solves the problem. > > > > \setuphead[section][after={\blank[s

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 10.11.2020 um 19:11: Weirdly enough, "\hskip 0pt" solves the problem.     \setuphead[section][after={\blank[samepage]\hskip 0pt}]     \starttext     \showframe     \dorecurse{50}{a }     \startsection[title=spec]     \startxtable What happens when

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 18:25, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 10.11.2020 um 18:06: > > > Thanks for the suggestion, but as illustrated by the second example, > > copied here, where the section title i

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 10.11.2020 um 18:06: Thanks for the suggestion, but as illustrated by the second example, copied here, where the section title is at the top of the page:     \starttext     \showframe     \dorecurse{50}{a }     \startsection[title=spec][before={\blank[preference

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 17:54, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Pablo Rodriguez schrieb am 10.11.2020 um 15:59: > > On 11/10/20 9:55 AM, Sylvain Hubert wrote: > >> Dear List, > >> > >> In the following example,

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 17:37, Pablo Rodriguez wrote: > On 11/10/20 5:23 PM, Sylvain Hubert wrote: > > My mistake, but the problem survives the fix: > > > > \setuphead[section][after={\blank[samepage,big]}] > > \starttext > > \showframe > > \

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 10.11.2020 um 15:59: On 11/10/20 9:55 AM, Sylvain Hubert wrote: Dear List, In the following example, the section title appears at the very end of the first page. [...] Does anyone know where to adjust the penalty in this case, so that the section title can

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Pablo Rodriguez
On 11/10/20 5:23 PM, Sylvain Hubert wrote: > My mistake, but the problem survives the fix: > >     \setuphead[section][after={\blank[samepage,big]}] >     \starttext >     \showframe >     \dorecurse{50}{a } >     \startsection[title=spec] >     \startxtable Hi Sylvain,

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
My mistake, but the problem survives the fix: \setuphead[section][after={\blank[samepage,big]}] \starttext \showframe \dorecurse{50}{a } \startsection[title=spec] \startxtable \startxrow \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell \stopxrow

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 16:00, Pablo Rodriguez wrote: > On 11/10/20 9:55 AM, Sylvain Hubert wrote: > > Dear List, > > > > In the following example, the section title appears at the very end of > > the first page. > > [...] > > Does anyone know where

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Pablo Rodriguez
On 11/10/20 9:55 AM, Sylvain Hubert wrote: > Dear List, > > In the following example, the section title appears at the very end of > the first page. > [...] > Does anyone know where to adjust the penalty in this case, so that the > section title can be repositioned to the n

[NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
Dear List, In the following example, the section title appears at the very end of the first page. \showframe \starttext \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{94}{a b c }\\ \dorecurse{30}{a b

Re: [NTG-context] temporarily move up a section title

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 10:12, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Sylvain Hubert schrieb am 08.11.2020 um 03:19: > > Dear List, > > > > I'm trying to move up a section title (section b) 2cm upward: > > > > \starttext > >

  1   2   3   4   5   6   7   8   9   >